ngl: Avoid offscreens in more cases
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Sep 2021 12:05:21 +0000 (08:05 -0400)
committerBenjamin Otte <otte@redhat.com>
Thu, 16 Sep 2021 21:59:37 +0000 (23:59 +0200)
commit93323be22a5727ceaea67938e88acf31066f7ee0
treee47ae0ad8199f586bd86171a7798793661089b50
parent9e14de25345039318bdd0a1f980139381bfae188
ngl: Avoid offscreens in more cases

We avoid an offscreen if we know the child node
can 'handle' the transform. Shadow nodes can if their
child node does - either the child node is a text node
in which case the shortcuts we take for shadow nodes
will work fine with the transform (we just render the
text node offset), or the child is not a text node,
in which case we render the shadow to an offscreen
anyway.

This change makes the label-shadows reftest pass with
the GL renderer, not by fixing the issue but by avoiding
it.
gsk/ngl/gsknglrenderjob.c